package com.example.demo.dao;

import com.example.demo.entity.CartEntity;
import com.example.demo.vo.CartVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CartDao {
    List<CartEntity> getCart(@Param("user_id") int user_id);
    int addCart(@Param("cartVo")CartVo cartVo);
    int upCart(@Param("cartVo")CartVo cartVo);
    int delCart(@Param("id")int id);
    int delCartUserId(@Param("user_id") int user_id);
}
